import asyncio


async def func():
    print(1)
    await asyncio.sleep(2)
    print(2)
    return "functon return"


async def main():
    print("main start:")
    task_list = [
        asyncio.create_task(func(), name="n1"),
        asyncio.create_task(func(), name="n2")
    ]
    print("main stop.")

    done, pending = await asyncio.wait(task_list)
    print(done)


asyncio.run(main())
